package com.type;

import java.io.DataInputStream;
import java.io.IOException;

public class Comment {
	String textComment;
	Photo photoComment;
	
	public Comment() {
		
	}

	public String getTextComment() {
		return textComment;
	}

	public Photo getPhotoComment() {
		return photoComment;
	}

	public void receive(DataInputStream dis) throws IOException, InterruptedException {
		textComment = dis.readUTF();
		Photo tempPhotoComment = new Photo();
		tempPhotoComment.receive(dis);
		photoComment = tempPhotoComment;
	}
}
